import java.util.Scanner;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-11-22
 * Time:23:46
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        String[] test = str.split(" ");//按照空格分割
        for (int i = test.length-1; i >= 0; i--) {

            System.out.print(test[i]+" ");

        }

    }
}
